<template> 
    <div class="hello"> 
        <div id="editor" type="text/plain" style="width:1024px;height:500px;margin-bottom:20px;"></div> 
        <Button type="primary" @click="submits">获取</Button> 
        <Button type="success" @click="xieru">设置</Button> 
    </div> 
</template> 

<script>
    import '../../../static/ueditor/ueditor.config';
    import '../../../static/ueditor/ueditor.all';
    import '../../../static/ueditor/lang/zh-cn/zh-cn'; 
    export default { 
        data () { 
            return { 
                ue: '', 
                uedata: [], 
                xierudata: [] 
            }
        }, 
        mounted() {
            UE.delEditor('editor');
            this.ue = UE.getEditor('editor',{ 
                BaseUrl: '', 
                UEDITOR_HOME_URL: 'static/ueditor/', 
                // toolbars:[] 
            }); 
        }, 
        methods: { 
            submits(){ 
                alert(UE.getEditor('editor').getContent());
            }, 
            xieru(){ 
                UE.getEditor('editor').setContent('欢迎使用ueditor'); 
            }
        }
    }
</script>